<link type="text/css" rel="stylesheet" href="{url:#css/product.css}" />
<style type="text/css">
#header .nav li.category-box .category {
    display: block; }
.m-hot-store {
    width: 1240px;
    margin: 10px auto;
}

.hot-store-title {
    background: #a02721;
    height: 50px;
    line-height: 50px;
    padding-right: 10px;
    color: #f1e0e4;
}

.hot-store-title > span {
    display: inline-block;
    width: 100px;
    height: 100%;
    vertical-align: bottom;
}

.hot-store-title > span img {
    width: 100%;
    height: 100%;
}

.hot-store-box {
    width: 1240px;
    margin: 0 auto;
}

.hot-store-box ul {
    overflow: hidden;
    width: 100%;
}

.hot-store-box li {
    float: left;
    width: 16.66%;
    text-align: center;
    padding: 10px 5px;
    box-sizing: border-box;
}

.hot-store-box li img {
    width: 100%;
}
</style>
<div class="zyk-head-right container">
    <div class="banner slider" style="width:740px; height: 366px; padding-top: 5px;" config-data={ "direction": "top"} >
        <ul class="cycle-slideshow">
            {query:name=ad where=number eq 'qgiowmka-us4k-p0up-vs3c-blkqmtb7'} {set:$lists = unserialize($item['content']);} {list:items=$lists item=$ad}
            <li style="background-image:url({url:@$ad[path]}) ">
                <a href="{url:$ad[url]}" target="_blank"></a>
            </li>
            {/list} {/query}
        </ul>
    </div>
    <div class="sub-2">
        <div class="news-list">
            <div class="header">商城公告</div>
            <ul class="body">
            	<!-- 只查询公告 -->
                {query:name=article where=category_id eq 5 order=id desc limit=14}
                <li><a href="{url:/index/article/id/$item[id]}" target="_blank">[{$categorys[$item['category_id']]|'默认'}]&nbsp;&nbsp;{echo:TString::msubstr($item['title'],0,12)}</a></li>
                {/query}
            </ul>
        </div>
    </div>
    <div class="sub-3 t1-list tjdp_show">
        <ul class="clearfix">
        		{query:name=my_ad where=name like '%轮播底部%' item=$item}
        			{set:$arr=explode(',',$item['content']);}
            		{list:items=$arr item=$it}
            		{set:$goods_obj=Common::getGoodsInfo($it)}
        			<li style="margin-top:0px;">
	                <dl class="tjdp-list">
	                    <dt>
	                        <div class="tjdp-pic" style="width:190px;height:105px;">
	                        	<a href="{url:/index/product/id/$goods_obj[id]}">
	                        	<img src="{url:@$goods_obj[img]}" width="190px" height="105px" title="{$goods_obj[name]}">
	                        	</a>
	                        </div>
	                    </dt>
	                </dl>
	                </li>
	                {/list}
        		{/query}
           		<!-- 
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="{url:#hql/img/190-76b.png}" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="{url:#hql/img/190-76d.png}" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="{url:#hql/img/190-76f.png}" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="{url:#hql/img/195-154a.png}" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
                <li style="margin-top:0px;">
                <dl class="tjdp-list">
                    <dt>
                        <div class="tjdp-pic" style="width:190px;height:105px;">
                        	<img src="{url:#hql/img/195-154b.png}" width="190px" height="105px">
                        </div>
                    </dt>
                </dl>
                </li>
            	-->
        </ul>
    </div>
</div>

<!-- S 商品展示 -->
<div class="container m-hot-store" style="margin-top: 130px">
    <div class="f20 mt10 hot-store-title" style="background-color: #ce91cf;position: relative">
        <span>
            <img src="{url:#images/login_bg.jpg}" alt="">
        </span>
        <span style="color:#a71ea9">
            推荐店铺
        </span>
        <form  class="search-form" action="{url:/index/dp}" method="post">
            {token:}
                  <span style="color:#a71ea9; position: absolute;top: 0;right: 10px">
                  <input class="search-keyword" id="search-keyword" class="txt-keyword" name="dp_name" value="" type="text">
                  <input class="search-keyword"  class="txt-keyword"  value="搜索" type="submit">
                   </span>
        </form>
    </div>
    <div class="hot-store-box">
        <ul>
            {query:name=dp order=sq_time desc limit=6}
            <li>
                <a href="{url:/index/dp/uid/$item[user_id]}">

                    <img src="{url:@$item[dp_logo]}" alt="店铺" width="193px" height="135px" title="{$g_obj[name]}">

                    <p>{$item[dp_name]}</p>
                </a>
            </li>
            {/query}
        </ul>
    </div>
</div>

<div class="top-show container">
    <div class="xt f20 mt10">
    热销商品
    <span class="fr f12">
        
    </span>
    </div>
    <div class="xt_show product1-list clearfix">
            <dl>
                <dd>
            <ul class="clearfix">
                <!-- 
                <li>
                	<img src="{url:#hql/img/190-76a.png}" width="100%" height="135px">
                </li> 
                -->               
                {query:name=my_ad where=name like '%热销商品%' item=$item}
        			{set:$arr=explode(',',$item['content']);}
            		{list:items=$arr item=$it}
            		{set:$g_obj=Common::getGoodsInfo($it)}
        			<li>
        			<a href="{url:/index/product/id/$g_obj[id]}">
                	 <img src="{url:@$g_obj[img]}" width="100%" height="135px" title="{$g_obj[name]}">
                	</a>
                </li>
	                {/list}
        		{/query}
            </ul>
        </dd>
        </dl>
        </div>

</div>

<div class="lists container">
    {query:name=app_ad order=ad_order desc where=status eq 1 and type eq $flag key=$c item=$items}
	{set:$cate_index = $c+1}
    <div>
        <div>
            <div style="padding:2px 0;border-bottom: 1px solid #e13d3d;margin-top:30px;background-color: #e13d3d">
                <span class="f28" style="color:white">{$cate_index}F </span>
                <span class="f18" style="color:white">{$items['name']}</a></span>
                <span class="category-tags fr f12">
                
                </span>
            </div>
        </div>
    </div>
    
        <div class="item">
            <div id="div1" class="sub-1" style="background-color: red; opacity:0.2;"></div>
            <div id="div2" class="sub-1">
            	
            	{list:items=$ad_images}
                        {set:$ad_imgs=$ad_images[$c]['content']}
                        {set:$imgs=unserialize($ad_imgs)}
            		<img width="100%" height="100%" src="{echo:$imgs[0][path]}"/>
            	{/list}
            	
            	
            	
               
            </div>
            <div class="sub-2">
                <ul class="index-products">
                   {set:$arrs=explode(',',$items['content'])}
            		{list:items=$arrs item=$it key=$g}
            		{if:$g<8}
            		{set:$goods_obj=Common::getGoodsInfo($it)}
                   <li style="height:300px;">
                        <dl class="product">
                           <dt class="img">
                               <a href="{url:/index/product/id/$goods_obj[id]}"><img title="{$item['name']}" src="{echo:Common::thumb($goods_obj['img'],150,130);}" width="150" height="150"></a>
                           </dt>
                           
                           <dt class="title f12"><a href="{url:/index/product/id/$goods_obj[id]}">{echo:mb_substr($goods_obj['name'],0,22,'utf-8')}</a>
                           </dt>
                           <dt style="padding-left: 25px;">
                           {set:$buy_name=Common::get_goods_sell_name($goods_obj['category_id'])}
                           售价:
                           <span class="red"><!-- {$currency_symbol} -->{$goods_obj['sell_price']}</span>&nbsp;&nbsp;&nbsp;&nbsp;</dt>
                       </dl>
                   </li>
                   {/if}
                   {/list}
                    
               </ul>
           </div>
        </div>

    {/query}
</div>
















<!-- 
<div class="lists container">
    {set:$cate_index=0;}
    {query:name=themes where=$g_s_id eq parent_id order=t_px desc limit=10 key=$j}
    {set:$cate_index++;}
    {set:$type=$item['t_type'];}
    {set:$cate_obj=Common::get_category_obj($type)}

    {set:$tcolor=$item['t_color'];}
    {set:$tad=$item['t_ad'];}
    {if:$item['ad_show']==1}
    
    {/if}
    <div>
        <div>
            <div style="padding:2px 0;border-bottom: 1px solid {$tcolor};margin-top:30px;">
                <span style="color: {$tcolor}" class="f28">{$cate_index}F </span>
                <span class="f18">{$item['t_title']}</a></span>
                <span class="category-tags fr f12">
                
                </span>
            </div>
        </div>
    </div>
    {set:$left_img=['left0.png','left1.png','left2.png','left3.png','left4.png']}
    {query:name=goods_category where=id eq $type}
        <div class="item">
            <div id="div1" class="sub-1" style="background-color: {$tcolor}; opacity:0.2;"></div>
            <div id="div2" class="sub-1">
            	{set:$k=$j+1}
            	{query:name=ad where=name eq '首页分类广告$k'} 
            		{set:$lists = unserialize($item['content']);} 
            		{list:items=$lists item=$ad}
            		<img width="100%" height="100%" src="{$ad['path']}"/>
            		
            		{/list}
            	{/query}
            	
            	
               
            </div>
            <div class="sub-2">
                <ul class="index-products">
                   {set:$g_list = Common::getGoodsListByClassifyId($type)}
                   {list:items=$g_list key=$i}
                   {if:$i<=7}
                   <li style="height:300px;">
                        <dl class="product">
                           <dt class="img">
                               <a href="{url:/index/product/id/$item[id]}"><img title="{$item['name']}" src="{echo:Common::thumb($item['img'],150,130);}" width="150" height="150"></a>
                           </dt>
                           
                           <dt class="title f12"><a href="{url:/index/product/id/$item[id]}">{echo:mb_substr($item['name'],0,22,'utf-8')}</a>
                           </dt>
                           <dt style="padding-left: 25px;">
                           {if:$g_s_id==63}
                           		消费券:
                           {else:}
                           		积分:
                           {/if}
                           <span class="red">{$currency_symbol}{$item['sell_price']}</span>&nbsp;&nbsp;&nbsp;&nbsp;</dt>
                       </dl>
                   </li>
                   {/if}
                   {/list}
                    
               </ul>
           </div>
        </div>
    {/query}
    {/query}
</div>
-->
   <!-- E 商品展示 -->